package com.yswee.mallnavi.model.common;

import com.yswee.framework.data.BaseArrayData;
import com.yswee.framework.data.parser.IParser;
import com.yswee.framework.net.ITaskContext;
import com.yswee.framework.net.http.Callback;
import com.yswee.mallnavi.context.ApiConstant;
import com.yswee.mallnavi.entity.common.CompanyEntity;
import com.yswee.mallnavi.model.BaseListModel;
import com.yswee.mallnavi.parser.BaseListGsonParser;

public class CompanyListModel extends BaseListModel<CompanyEntity> {

    public CompanyListModel(ITaskContext context) {
        super(context);
    }

    @Override
    protected String getUrl(Callback<BaseArrayData<CompanyEntity>> c, int pageIndex) {
        return ApiConstant.API_COMPANIES;
    }

    @Override
    protected IParser<BaseArrayData<CompanyEntity>> createParser() {
        return new Parser();
    }

    private class Parser extends BaseListGsonParser<CompanyEntity> {

    }

}
